package com.mywork.mvpkodeinxml.net.service

import com.mywork.mvpkodeinxml.net.api.DownloadApi
import com.mywork.mvpkodeinxml.net.DownloadFactory
import io.reactivex.Observable
import java.io.File


class DownloadService {

    fun download(userCode: String, userPassword: String, formId: String, path: String): Observable<File> {
        return DownloadFactory.create(DownloadApi::class.java)
            .download(userCode, userPassword, formId, path)
    }

}